package com.lsh.oms.core.dao.afterSales;

import com.lsh.oms.core.dao.MyBatisRepository;
import com.lsh.oms.core.model.after.OrderAfterSales;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by xuzhan on 16/10/10.
 */
@MyBatisRepository
public interface OrderAfterSalesDao {

    Integer insertVo(OrderAfterSales vo);

    Integer updateVo(OrderAfterSales vo);

    OrderAfterSales queryVoByOrdercode(OrderAfterSales vo);
    
    Integer updateDel(OrderAfterSales vo);

    List<OrderAfterSales> findListByOrderCode(Long orderCode);

    OrderAfterSales findOne(@Param("afterSalesCode") String afterSalesCode);

    Integer deleteByList(List<OrderAfterSales> list);
}
